package com.framework.base;

import lombok.Data;

import java.io.Serializable;

/**
 * @Description: TODO
 * @Author: xiaoche
 * @Date: 2021/11/13 02:01
 */
@Data
public class ResultDTO<T> implements Serializable {

    /** 错误码.无错误(成功) */
    public static final String ERRCODE_NONE = "0";
    /** 错误码.未知错误（服务异常、通用异常） */
    public static final String ERRCODE_UNKOWN = "-9";

    /**
     * 服务执行状态
     * true: 成功
     * false: 失败
     */
    private Boolean success = true;
    private String code = ERRCODE_NONE;
    private String msg;
    private String traceId;
    private T data;
}
